home *** CD-ROM | disk | FTP | other *** search
- package Forms
- {
- import Common.SoundManager;
- import caurina.transitions.Tweener;
- import flash.text.TextField;
-
- [Embed(source="/_assets/assets.swf", symbol="Forms.AchievementsPopupForm")]
- public class AchievementsPopupForm extends CluelessBaseForm
- {
-
-
- public var _medal:Medal;
-
- public var _tfAwardName:TextField;
-
- internal var _sName:String;
-
- public function AchievementsPopupForm()
- {
- super();
- }
-
- public function init(param1:String) : void
- {
- _sName = param1;
- _tfAwardName.text = _sName + " AWARD";
- _medal.gotoAndStop(param1);
- _medal.scaleX = 0.01;
- _medal.scaleY = 0.01;
- Tweener.addTween(_medal,{
- "scaleX":1,
- "scaleY":1,
- "time":1,
- "onComplete":onComplete
- });
- SoundManager.getInstance().playSound("NewTrophyAwardedSound");
- }
-
- protected function onComplete() : void
- {
- setBackButton(this);
- }
- }
- }
-